package com.example.bbook.util;

public enum ResponseCodeEnum {
    SUCCESS(200, "请求成功"),
    FAIL(400, "请求失败"),
    TOKEN_INVALID(401, "Token非法");

    private final Integer code;
    private final String message;
    ResponseCodeEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public Integer code(){ return this.code; }
    public String message(){ return this.message; }
}
